home *** CD-ROM | disk | FTP | other *** search
Wrap
<HTML id=dlgOrganizeFavorites STYLE="font-family: ms sans serif; font-size: 10pt; width: 41.2em; height: 31.0em"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <head> <style> .title {color: BUTTONSHADOW; font-family: Verdana; font-size: 16pt;} .button {color: BUTTONTEXT; font-size: 8pt; font-family: sans-serif; background-color: BUTTONFACE; cursor: hand; border-bottom: solid 1px BUTTONSHADOW;border-top: solid 1px BUTTONSHADOW;border-left: solid 1px BUTTONSHADOW;border-right: solid 1px BUTTONSHADOW;} .hover {color: white; font-size: 8pt;font-family: Verdana ; background-color: #003399; cursor: hand} .buttondown {color: white; font-size: 8pt;font-family: Verdana ; background-color: black; cursor: hand} .info {font-size: 8pt; font-family: Verdana;} .text {font:8pt/11pt Verdana; } .buffer {} .None {} .btext {color: BUTTONTEXT; cursor: hand} UL {margin-left:14pt; margin-top:0} LI {line-height:10pt} A {text-decoration: none; color: white; cursor: hand} </style> <TITLE> Organize Favorites </TITLE> <script> window.onerror = HandleError; var g_strUrl; //the currently selected url var g_rgUrlsToSynch = new Array(0); //list of urls to synch on close, urls are used as indices //+------------------------------------------------------------------- // // Synopsis: Turns off error messages in dialogs // // Arguments: none // // returns: true (tells browser not to handle message) // //-------------------------------------------------------------------- function HandleError(message, url, line) { var L_Dialog_ErrorMessage = "An error has occured in this dialog."; var L_ErrorNumber_Text = "Error: "; var str = L_Dialog_ErrorMessage + "\n\n" + L_ErrorNumber_Text + line + "\n" + message; alert (str); window.close(); return true; } function BodyOnKeyPress(nCode) { if (nCode == 27) //ESC { window.close(); return; } if (nCode == 116) //F5 { //eat it event.returnValue = false; } // alert(nCode); } function ConfirmSort() { var L_ConfirmResetSortOrder_Message = "This will return all of your favorites to alphabetical order.\n\nAre you sure you want to do this?"; //displayed in ok/cancel dialog when pressing the Sort... button if (confirm(L_ConfirmResetSortOrder_Message)) nsc.ResetSort(); } function OnSelectionChange(cItems, hItem, strName, strUrl, cVisits, strDate, fAvailableOffline) { var L_MakeAvailableOffline_Text = "Make available <U>o</U>ffline"; //Make available offline var L_MakeAvailableOfflineAccesskey_Text = "o"; //this must be the single character that is underlined above g_strUrl = strUrl; if (strName.length > 30) strName = strName.substring(0, 29) + "..."; //if it's not a folder if (cVisits != -1) { var strOffline = ""; if (strUrl.substring(0,4) == "http") { strOffline = "<input type=checkbox ACCESSKEY=" + L_MakeAvailableOfflineAccesskey_Text + " id=chkOffline " if (fAvailableOffline != 0) strOffline += "CHECKED" strOffline += " onclick='ToggleOffline(this)'><LABEL FOR=chkOffline TABINDEX=-1>" + L_MakeAvailableOffline_Text + "</LABEL><BR>" } if (strUrl.length > 30) strUrl = strUrl.substring(0, 29) + "..."; var L_TimesVisited_Text = "times visited: "; //number of times the favorite has been visited var L_LastVisited_Text = "last visited: "; //date the favorite was last visited textProperties.innerHTML = "<B>" + strName + "</B><BR>" + strUrl + "<BR>" + L_TimesVisited_Text + cVisits + "<BR>" + L_LastVisited_Text + strDate + "<BR>" + strOffline; } else { var L_FavoritesFolder_Text = "Favorites Folder"; //Favorites folder var L_ModifiedColon_Text = "Modified:"; //Last modified date of directory, followed by a colon textProperties.innerHTML = "<B>" + strName + "</B><BR>" + L_FavoritesFolder_Text + "<BR><BR>" + "<B>" + L_ModifiedColon_Text + "</B><BR>" + strDate; } } function EnableButtons() { if (!nsc.FOfflinePackInstalled) { tdSynchronize.style.backgroundColor = "gray"; } } function Synchronize() { if (nsc.FOfflinePackInstalled) nsc.Synchronize(); } function ToggleOffline(chkOffline) { if (chkOffline.checked) { //if it fails to create a subscription, clear the check box if (!nsc.CreateSubscriptionForSelection()) chkOffline.checked = false; else g_rgUrlsToSynch[g_strUrl] = true; } else { if (!nsc.DeleteSubscriptionForSelection()) chkOffline.checked = true; else delete g_rgUrlsToSynch[g_strUrl]; } } function BuildSynchList() { window.returnValue = ""; for (strUrl in g_rgUrlsToSynch) { window.returnValue += strUrl + "\0"; } } </script> <script for=nsc event="FavoritesSelectionChange(cItems, hItem, strName, strUrl, cVisits, strDate, fAvailableOffline)"> OnSelectionChange(cItems, hItem, strName, strUrl, cVisits, strDate, fAvailableOffline); </script> </HEAD> <body style="margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0" text=BUTTONTEXT scroll="no" onkeydown="BodyOnKeyPress(event.keyCode)" onkeypress="BodyOnKeyPress(event.keyCode)" onload="EnableButtons()" onunload="BuildSynchList()"> <table border=0 width=545 height=43> <TR id=topbuffer height=3 > <TD> </TD> <TD> </TD> <TD> </TD> </TR> <TR id=titlerow height=40> <TD width=4> </TD> <TD valign=top id=tdTitleOrgFavs> <span id=spanTitleOrgFavs class=TITLE> Organize Favorites</span> <HR> </TD> <TD width=4> </TD> </TR> </table> <table border=0 width=210 height=284 cols=3> <TR id=mainrow> <TD width=10> </TD> <TD valign=top id=infotext class=info width=215> To create a new folder, click on the Create Folder button. To delete or move an item, select the item and then click on the delete or move button. <BR><BR> <table cols=2 border="0" width=200> <tr height=20> <Td width=100 CLASS=BUTTON id=tdNewFolder align=center onclick="nsc.NewFolder(); event.returnValue = false" ondragstart="event.returnValue = false"> <A ACCESSKEY=c class=btext HREF=""><U>C</U>reate Folder</a> </td> <td width=100 CLASS=BUTTON id=tdMoveUp align=center onclick="nsc.MoveSelectionUp(); event.returnValue = false" ondragstart="event.returnValue = false"> <A ACCESSKEY=u class=btext HREF="">Move <U>U</U>p</a> </td> </tr> <tr height=20> <td width=100 CLASS=BUTTON id=tdDelete align=center onclick="nsc.InvokeContextMenuCommand('delete'); event.returnValue = false" ondragstart="event.returnValue = false"> <A ACCESSKEY=d class=btext HREF=""><U>D</U>elete</a> </td> <td width=100 CLASS=BUTTON id=tdMoveDown align=center onclick="nsc.MoveSelectionDown(); event.returnValue = false" ondragstart="event.returnValue = false"> <A ACCESSKEY=w class=btext HREF="">Move Do<U>w</U>n</a> </td> </tr> <tr height=20> <td width=100 CLASS=BUTTON id=tdRename align=center onclick="nsc.InvokeContextMenuCommand('rename'); event.returnValue = false" ondragstart="event.returnValue = false"> <A ACCESSKEY=r class=btext HREF=""><U>R</U>ename</a> </td> <td width=100 CLASS=BUTTON id=tdMoveTo align=center onclick="nsc.MoveSelectionTo(); event.returnValue = false" ondragstart="event.returnValue = false"> <A ACCESSKEY=m class=btext HREF=""><U>M</U>ove to Folder...</a> </td> </tr> </table> <BR><BR> <DIV id=textProperties style="margin-left:5; width: 200px; height: 100px; overflow: hidden"> <BR> When you click on a favorite, you will see it's details here. </DIV> </TD> <TD width=4> </TD> </TR> </table> <table border=0 height=284 width=290 cols=2 STYLE="position:absolute; left:235; top:50"> <TR> <TD width=4> </TD> <TD width=286> <object name=nsc CLASSID='clsid:55136805-B2DE-11D1-B9F2-00A0C98BC547' onkeypress="BodyOnKeyPress(event.keyCode)" HEIGHT=100% WIDTH=100%></OBJECT> </TD> </TR> </table> <table border=0 height=40 width=545 cols=3> <TR> <TD width=4> </TD> <TD> <hr> <table border=0> <tr height=20> <td width=70 CLASS=BUTTON id=tdProperties align=center onclick="nsc.InvokeContextMenuCommand('properties'); event.returnValue = false" ondragstart="event.returnValue = false"> <A ACCESSKEY=p class=btext HREF=""><U>P</U>roperties</a> </td> <Td width=70 CLASS=BUTTON id=tdSort align=center onclick="ConfirmSort(); event.returnValue = false" ondragstart="event.returnValue = false"> <A ACCESSKEY=s class=btext HREF=""><U>S</U>ort</a> </td> <Td width=70 CLASS=BUTTON id=tdSynchronize align=center onclick="Synchronize(); event.returnValue = false" ondragstart="event.returnValue = false"> <A ACCESSKEY=y class=btext HREF="">S<U>y</U>nchronize</a> </td> <Td width=70 CLASS=BUTTON id=tdImport align=center onclick="nsc.Import(); event.returnValue = false" ondragstart="event.returnValue = false"> <A ACCESSKEY=i class=btext HREF=""><U>I</U>mport</a> </td> <Td width=70 CLASS=BUTTON id=tdExport align=center onclick="nsc.Export(); event.returnValue = false" ondragstart="event.returnValue = false"> <A ACCESSKEY=x class=btext HREF="">E<U>x</U>port</a> </td> <Td width=70 align=center> </td> <Td width=70 CLASS=BUTTON id=tdDone align=center onclick="window.close(); event.returnValue = false" ondragstart="event.returnValue = false"> <A ACCESSKEY=l class=btext HREF="">C<U>l</U>ose</a> </td> </tr> </table> </TD> <TD width=4> </TD> </TR> </table> </BODY> </HTML>